
public class RestartCommand implements ICommand {

    private LinuxSystem linuxSystem;

    public RestartCommand(LinuxSystem linuxSystem) {
        this.linuxSystem = linuxSystem;
    }

    public void execute() {
        linuxSystem.restart();
    }
}